package com.yegs.jltqc.service;

import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.VO.BaseUser;
import com.yegs.jltqc.common.StoreException;
import org.springframework.data.domain.Page;

import java.util.List;

public interface BaseUserService {

    void save(BaseUser baseUser) throws StoreException;

    List<BaseUser> list();

    BaseUser get(Long id);

    void del(Long id);

    BaseUser findByUsernameAndPassword(String username, String password);

    BaseUser findByCodeAndPassword(String code, String password);

    Page<BaseUser> query(NamePageQuery query);


}
